<?php

class Control_Homepage_Calendar extends QUI_Control_Abstract
{
    function render()
    {
        $this->_view['activities'] = Activity::find()
            ->order('order_pos DESC')
            ->top(Q::ini('appini/homepage/activities_num'))
            ->getAll();
        return $this->_fetchView(dirname(__FILE__) . '/calendar_view.php');
    }
}

